Skip to content

fix(lint): state-machine-no-initial-states judges only insert-running machines, and field-group-shadowed judges the six highlights the record page draws - #35629

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35251-state-machine-update-only
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35251-state-machine-update-only

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq
Fixes #35251
Part of #35252 — folded into this PR whole; the chain head #35251 carries the fold's record, so #35252 is shut by hand with a Delivered note after merge.
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #35245 — an update-only state machine needs no initialStates (skills/objectstack-data/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md; scope note 7018552906); the six-highlight strip is taught nowhere in skills/**

维护者速读

  • 用户能看到什么变化:应用作者发布时,只在更新时运行的状态机不再被要求填写"初始状态";详情页顶部要点条遮住整组字段时,检查按页面实际显示的六项来判断,不再只看前四项。
  • 为什么做:两条发布检查与运行时的真实行为对不上——前者逼作者写运行时根本不读的配置,后者漏报详情页上整组字段消失的情况。
  • 出错会怎样:第一条只会少拒绝;第二条可能让少数应用多出一条警告(只在严格模式下导致校验失败),本仓全部示例与平台对象实测零新增;可直接回滚。
  • 要你做什么:无。

What changes

Two cards, one mechanism: a packages/lint rule judged a scope the runtime does not. One commit per card, #35251 first.

#35251 — state-machine-no-initial-states judges only machines that run on insert

  • The rule (packages/lint/src/validate-inert-object-declarations.ts) now skips a state_machine whose events leave out insert. Predicate runsOnInsert(events): absent (or null) takes the schema default, an explicit list must contain insert; so ['update'] and [] are not judged. The hint is unchanged.
  • Spec read before writing it: packages/spec/src/data/validation.zod.ts:149 declares events: z.array(z.enum(['insert','update'])).default(['insert','update']), so an omitted events runs on insert.
  • Engine read: packages/objectql/src/validation/rule-validator.ts:3938-3939 drops every rule whose events ?? ['insert','update'] does not include the write mode, before checkStateMachine runs; its initialStates branch is if (mode === 'insert') at :4209. An update-only machine therefore never reads initialStates.
  • Showcase: the three declaration-only lists are gone — showcase_account account_lifecycle ['prospect'], showcase_project project_health_progression ['green'], showcase_task task_status_flow ['backlog','todo']. Each machine is now byte-identical to its form before feat(lint): five publish-time checks for metadata the runtime ignores, and four build probes over what landed #35244 (git diff f4dbcc21^ on each of the three files: 0 changed lines). No showcase test or doc asserts them: seed.test.ts reads only machines that declare initialStates, and new-project-wizard-initial-status.test.ts and seed/index.ts read project_status_flow, which runs on insert and keeps ['planned'].
  • Prose that the narrowing made false, corrected in the same commit (restating the card's scope line "The rule judges only machines that run on insert"): the initialStates .describe() in validation.zod.ts (+ regenerated content/docs/references/data/validation.mdx), the os explain paragraph in rule-explanations.ts, and the unreleased upgrade-guide entry 18.publish-refuses-metadata-the-runtime-ignores.ts.

#35252 — field-group-shadowed judges the six highlights the record page hoists

  • New RECORD_HIGHLIGHTS_MAX = 6 in packages/spec/src/ui/component.zod.ts (@objectstack/spec/ui), the one source. @objectstack/lint depends on @objectstack/spec and on nothing under ui/**, so the constant lives there and the UI imports it.
  • ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts re-exports it as its own RECORD_HIGHLIGHTS_MAX (module export only; the package entry never exported it) — same value, the page is unchanged.
  • packages/lint/src/validate-semantic-roles.ts rule (d) cuts at RECORD_HIGHLIGHTS_MAX instead of slice(0, 4), and its hint reads "first 6 highlightFields".
  • The lint mirrors the renderer on the points that decide the strip: non-string entries dropped, the title field filtered out BEFORE the cut (deriveHighlightFields), hidden: true members not counted.
  • Upgrade-guide entry 18.field-group-shadowed-six-highlights.ts, ADR-0087 disposition registered field-group-shadowed-six-highlights.

Which stacks the rule now refuses that it passed: an object with a field group whose every visible member is the title or a highlight in position 5 or 6 (after the title leaves the list) gets a field-group-shadowed warning; os lint --strict / os validate --strict exits 1 on it. Measured on this tree: every *.object.ts under packages/** and examples/** (135 objects from 132 files, old 4-cut vs new 6-cut side by side) — 0 new findings, 0 removed; the 2 files that would not load in the scratch harness (plugin-audit sys-activity with 4 highlights, sys-audit-log with none) cannot change verdict.

The card's "a valid list is refused" half does not hold. The strip hides the first N, so the fields the first 4 hide are a subset of the fields the first 6 hide: every list the 4-cut warned, the 6-cut warns too. The hotcrm example confirms it: owner_id sixth also empties the assignment group on the 18.6.0 page, so dropping it was the right fix, and the 4-cut passing the sixth position was the defect. No carve-out was added.

Tests

Acceptance notes

  • Out of scope, as the claim states: the every-option initialStates residual (comment 6992730706, crm_opportunity in app-crm). Not touched; the rule still passes an every-option list.
  • The renderer hides one more field the lint does not model: headerDrawnFields also drops the stage field from the body when the page draws record:path (detectStatusField + options). A group whose only member is that field is empty on the page and not warned. Read only, not reproduced on a running page; filed as lint: field-group-shadowed does not count the stage field the record page draws as record:path, so a group whose only member is it shows empty without a warning #35630 (read only, not reproduced).
  • Two more literal sixes stay outside this diff's surface: HIGHLIGHT_FIELDS_MAX (Studio's highlight editor) and HIGHLIGHTS_MAX in ui/packages/fields/src/RecordHoverCard.tsx. Both agree today; they could read the spec constant too.
  • The rule's own .changeset/34776-publish-checks-build-probes.md sentence ("an active state_machine validation without initialStates … lets a record be created already in any state") is unreleased and now broader than the rule; this PR's changeset states the narrowing in the same release rather than editing that note.

Verification

Two-minute check: pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-inert-object-declarations.test.ts src/validate-semantic-roles.test.ts — expect 2 files, 40 tests, all green.

Read first:

  1. packages/lint/src/validate-inert-object-declarations.ts — runsOnInsert, the predicate (a wrong default here re-opens or hides the whole rule).
  2. packages/lint/src/validate-semantic-roles.ts rule (d) — the cut moves from 4 to the spec constant.
  3. packages/spec/src/ui/component.zod.ts — the new RECORD_HIGHLIGHTS_MAX export (a public spec surface).

Local readings for head 1c2b804 (the final head: a clean merge of origin/main 5c5b54d onto 18224af; the PR's own diff vs main is unchanged, same git patch-id --stable 43a14c36). The package and gate readings below were taken at f76bbfb; 18224af changes only the Clause-② line of the #35252 changeset. On the merge head the spec build + check:generated (14 of 14 up to date), the two lint test files (40 tests), the spec migration tests (198 tests), the ADR-0087 registration, no-major, NUL-byte and overlap checks were rerun, all exit 0.

Package tests and typechecks
  • pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test — VERDICT command-exit 0; Test Files 221 passed, Tests 9311 passed.
  • pnpm --filter @objectstack/spec test — VERDICT command-exit 0; Test Files 855 passed, 1 skipped; Tests 27388 passed.
  • pnpm --filter @objectstack/spec typecheck — exit 0.
  • pnpm --filter @object-ui/plugin-detail type-check — exit 0 (after building its dependency closure); vitest run packages/plugin-detail/ from ui/ — VERDICT command-exit 0; Test Files 388 passed, 1 skipped; Tests 3536 passed.
  • pnpm --filter @objectstack/spec exec vitest run src/migrations/ — 5 files, 198 tests passed.
  • pnpm --filter @objectstack/example-showcase exec vitest run --maxWorkers=2 — VERDICT command-exit 0; Test Files 48 passed, Tests 549 passed.
Derived gate families (dispatch-gates --commands, 125)
  • 124 of 125 exit 0, ten of them on a re-run after building the spec and CLI closure they read (check:api-surface, check:generated, check:i18n-coverage, check:dual-build-cjs-loads and the rest first answered PREREQUISITE NOT MET, exit 3).
  • NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test, reason: shallow checkout cannot reach its pinned positive-control commit (exit 3); CI runs it.
  • dispatch-gates --ran: 125 derived, 124 run, 1 NOT-MEASURED (derived from a recorded exit 3), 0 UNRUN.
  • node scripts/check-adr-0087-registration.mjs --base origin/main — exit 0, one declared-breaking changeset, registered field-group-shadowed-six-highlights.

Not run locally, owned by CI: test:repo, the repo-wide pnpm lint. Dogfood (owed once on the final head by the (narrowing) arm): pnpm --filter @objectstack/dogfood test on 18224af under the verify lock — VERDICT command-exit 0; Test Files 482 passed, 3 skipped; Tests 4092 passed, 68 skipped; 0 failed (os-dev-report 7019779056).

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq


Generated by Claude Code

…run on insert

An update-only state machine (events without insert) never runs on create,
so the engine never reads its initialStates; the rule no longer refuses it.
The three showcase machines that carried a declaration-only initialStates
list to pass the rule drop it.

Claude-Session: https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq
Co-authored-by: Claude <noreply@anthropic.com>
…page hoists

The record page draws the first six highlightFields in its header strip and
leaves them out of the Details body; the lint judged four, so a group emptied
by the fifth or sixth highlight passed. The count is now one constant,
RECORD_HIGHLIGHTS_MAX in @objectstack/spec/ui, read by the lint and by the
record page synthesizer in @object-ui/plugin-detail.

Claude-Session: https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

6 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/export-origins/ui.json, packages/spec/liveness/object.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/export-origins/ui.json, packages/spec/liveness/object.json) — pages documenting those are invisible to this run
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 5c5b54d3faecbac18a642c70139df295639b985c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 04c80f1a8002a4786164316dfb6f5814db218bd2 — the merge of head 1c2b804052a59a3aa0d5b798da42ac3d81d80212 into base 5c5b54d3faecbac18a642c70139df295639b985c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 04c80f1a8002a4786164316dfb6f5814db218bd2 && git checkout 04c80f1a8002a4786164316dfb6f5814db218bd2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5c5b54d3faecbac18a642c70139df295639b985c 1c2b804052a59a3aa0d5b798da42ac3d81d80212 && git checkout -B drift-repro 5c5b54d3faecbac18a642c70139df295639b985c && git merge --no-ff 1c2b804052a59a3aa0d5b798da42ac3d81d80212

node scripts/docs-audit/affected-docs.mjs --json 5c5b54d3faecbac18a642c70139df295639b985c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…arm beside narrowed

Metadata-protocol narrowed is a breaking narrowing by definition, so the
Clause-② line carries (narrowing), not (widening).

Claude-Session: https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Final green head · 2026-11-19T20:14Z · 18224af0429a5564c670f6049ce328b7e884f318
Every required context on this head concluded success (Lint & Repo Gates, TypeScript Type Check, Test Core roll-up and its ten shards, Test UI and its sixteen, Build Core, Dogfood Regression Gate, Governed Surface Queue Guard). Check Changeset has two runs here: 44591918484 (the synchronize run, which read the body before the Clause-②: yes (narrowing) patch) failed, and 44592003459 (the edited run, which read the current body) succeeded. Full dogfood battery on this head: green (os-dev-report 7019779056 on #35251).
Cards #35251 + #35252 (fold claims 7016093607 / 7016141194, amendment 7018624230). Clause-②: yes (narrowing) · Metadata-protocol: narrowed · not governed. Owed: L1 (asked of L1-a on this head) and an isolated CONTRACT_REVIEW_TIER L2 (new packages/spec/src export).


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review brief — PR #35629 @ 18224af0429a5564c670f6049ce328b7e884f318 (cards #35251 and #35252 (folded; chain head #35251))

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/ui/component.zod.ts packages/spec/src/data/validation.zod.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· cards #35251 and #35252 (folded; chain head #35251): its body and EVERY comment (rulings and earlier records included)
· PR #35629: its body, its file list, and the net diff against main at 18224af0429a5564c670f6049ce328b7e884f318
· the check-runs on 18224af0429a5564c670f6049ce328b7e884f318: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/ui/component.zod.ts, packages/spec/src/data/validation.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/9e6bbf1c-0c22-5a93-a4cb-2186a977268c/scratchpad/pr-35629/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化,有两处:
    • 状态机校验规则不再要求「只在更新时运行」的状态机填写初始状态。
    • 「字段分组被高亮条遮住」的警告改按记录页实际显示的 6 个高亮字段来判断,以前只看前 4 个。所以第 5、6 个高亮字段把某个分组挤空时,现在也会提示。以前被警告的写法仍会被警告。
  • 出错会怎样:最坏是某个分组的警告多报或漏报。它只是警告,不会拒绝发布;但用 --strict 时会让校验失败。
  • 要你做什么:不需要你做任何事。等契约评审通过后,区域自己落地。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head 18224af0429a5564c670f6049ce328b7e884f318 · 2026-11-19T20:17Z


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 18224af0429a5564c670f6049ce328b7e884f318
Local-runs: none
Scope: packages/spec/src/ui/component.zod.ts, packages/spec/src/data/validation.zod.ts + packages/lint/src/validate-inert-object-declarations.ts, packages/lint/src/validate-semantic-roles.ts, packages/lint/src/rule-explanations.ts, ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts, packages/spec/src/migrations/entries/semantic/18.field-group-shadowed-six-highlights.ts, packages/spec/src/migrations/entries/semantic/18.publish-refuses-metadata-the-runtime-ignores.ts

Isolated review of PR #35629 for cards #35251 and #35252 (folded, chain head #35251). Read: both cards with every comment, the PR body and file list, the net diff origin/main...18224af0 (19 files, +197/−41, merge-base e35cf035), and the check-runs on the head. Nothing was built, run or re-run. The rest of the diff (the two test files, the three showcase objects, the generated api-surface / export-origins / liveness / validation.mdx output, the changesets) is the lane seat's ACCEPT and is not judged in ④.

① Derived judgments

  • state-machine-no-initial-states accepts a machine whose events leave out insert — right. runsOnInsert returns true for an absent or null events and otherwise requires an array containing insert. That is the engine's own filter, r.events ?? ['insert', 'update'] then events.includes(mode) (packages/objectql/src/validation/rule-validator.ts:3938-3939), and the only initialStates read sits under if (mode === 'insert') (:4209-4210). The schema default is ['insert', 'update'] (validation.zod.ts:149), and the rule is registered input: 'parsed' (authoring-rules.ts), so the predicate is right on a defaulted stack and on a raw one. The guard sits after the active === false skip and before the initialStates test, so a machine that runs on insert is refused exactly as before, with the same hint.
  • events: [] is not judged — right for the server. [].includes('insert') is false in the engine, so the machine never runs on create. See N3 for the client readers, which read an empty list differently.
  • A non-array events is not judged — right. The schema refuses it before this rule's verdict can matter.
  • field-group-shadowed warns a group emptied by the fifth or sixth highlight — right. The page cuts with the same constant in three places: deriveHighlightFields (max = RECORD_HIGHLIGHTS_MAX), buildDefaultHighlights and headerDrawnFields, and the last one is what the Details body leaves out.
  • No list warned under four passes under six — right. The first-four set is a subset of the first-six set, so the hidden-from-body set only grows. The card's "a valid list is refused" half therefore does not occur, and the diff is right to add no carve-out. The card's own example agrees: owner_id in fourth position is hoisted on the page too.
  • New public export RECORD_HIGHLIGHTS_MAX on @objectstack/spec/ui — right, additive. It reaches the barrel through export * from './component.zod', and api-surface/ui.json and export-origins/ui.json carry the row. @objectstack/lint already imports values from @objectstack/spec/ui (filter-walk.ts, i18n-walk.ts), and the ui/ packages already import values from it (app-shell), so neither import is a new dependency edge.
  • plugin-detail keeps its module export RECORD_HIGHLIGHTS_MAX as a re-export — right. Same name, same value; the package entry (src/index.tsx) never exported it, and the in-package test still imports it from the module.
  • validation.zod.ts changes one .describe() string only — right. No accept-set change; the regenerated validation.mdx carries the same sentence in its four places.

② Semver level

  • .changeset/35251-state-machine-update-only.md: @objectstack/lint minor, @objectstack/spec minor, Clause-②: yes (widening), Metadata-protocol: added. Right: against main the rule accepts a declaration it refused, and a kind takes at least minor on each package the diff moves.
  • .changeset/35252-field-group-shadowed-six-highlights.md: lint, spec and @object-ui/plugin-detail minor, Clause-②: yes (narrowing), Metadata-protocol: narrowed. Right: a requirement tightened (a new warning that --strict turns into exit 1). It carries the fix in the body and the one ADR-0087 marker, registered field-group-shadowed-six-highlights, and the entry file exists under that id.
  • PR body: Clause-②: yes (narrowing) and Metadata-protocol: narrowed, the stronger of the two changesets on both lines. Right.
  • Gate verdict: Check Changeset has two runs on this head. Run 44591918484 (the synchronize event) failed; its log ends on the declaration-line check and says the lines "are re-read from the body on the next edited event, so this clears with no push". Run 44592003459 (the edited event, started 30 seconds later) succeeded and is the newer run. The tree and the current body agree with the passing run. Governed Surface Queue Guard, Spec property liveness, Lint & Repo Gates, TypeScript Type Check, Build Core, Test Core and Test UI with all their shards, Dogfood Regression Gate, Live E2E UI and Build Docs all concluded success. Of the 74 runs, the only other non-success is one cancelled PR-body guards run with a later success beside it; the rest are skipped.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/data/validation.zod.ts — holds. The new sentence says the rule refuses a machine "when its events include insert (the default)" and that an update-only machine "never runs on create, so it needs no initialStates". Both are true of the engine lines cited in ①, and the first consumer, runsOnInsert, implements exactly that sentence. The ruling it implements is the card's scope line, "the rule judges only machines that run on insert".

packages/spec/src/ui/component.zod.ts — holds. Each jsdoc sentence was read against the synthesizer:

  • "after the record's title field leaves the list, the DEFAULT record page draws in its header strip": deriveHighlightFields filters the title and then slices.
  • "an entry past this count is drawn in the body instead": headerDrawnFields slices with the constant, so the seventh entry is not in the body-hidden set.
  • "Not the bound of an authored record:highlights block's fields": RecordHighlightsProps.fields is .max(7), a separate bound.
  • A plain exported constant in this file has a precedent (SECTION_HEADING_COUNT_HOLE).
  • The home is right: lint depends on spec and on nothing under ui/, so spec is the only package both readers can import.

packages/lint/src/validate-inert-object-declarations.ts — agrees with the contract. Tried to break it with null, [], a non-array, a defaulted parse and a raw object; each lands where the engine does.

packages/lint/src/rule-explanations.ts and 18.publish-refuses-metadata-the-runtime-ignores.ts — agree. Both now state the insert condition the rule applies.

packages/lint/src/validate-semantic-roles.ts — the cut and the hint agree with the constant and with the page's count. One sentence overstates; see N1.

ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts — agrees. Import plus re-export; no behaviour change.

18.field-group-shadowed-six-highlights.ts — agrees: a warning, not a publish refusal, a group warned before is still warned, and --strict exits 1.

Nits, none of which changes a verdict of this diff:

  • N1 (nit) — the lint's title ladder is not the renderer's, so the new comment in validate-semantic-roles.ts, "the verdict and the screen cannot drift apart", holds for the count only.
  • N2 (nit, prose face) — the PR body is stale against the head. It says "Local readings at head f76bbfb (the final commit)" and "Dogfood: … NOT MEASURED at this edit", while the head is 18224af0 and os-dev-report 7019779056 reports the full battery green on it. Its line "the lint mirrors the renderer on … the title field filtered out BEFORE the cut" is true of the cut order and not of which field is the title (N1). A body edit fixes it without moving the head.
  • N3 (nit, follow-up candidate) — events: [] is read two ways outside this diff. The server engine never runs such a rule. The client validators treat an empty list as the default (ui/packages/core/src/validation/validators/object-validation-engine.ts:147-148, state-machine-next-values.ts:62). The lint follows the server, which is the right side for a publish gate, and with no initialStates the two agree on create anyway. A rule declared events: [] never runs on the server at all and no lint reports it; that is the same trap class as lint: six publish-time checks for metadata that passes the schema and does nothing at run time #34776 and may deserve its own card.

Implemented-by: claude/issue-35251-state-machine-update-only
Reviewed-by: session_01L6bhgUZrkMKgGrXXe8zPGq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption · 2026-11-19T20:21Z · The seat adopts area b1-C's isolated record 7021133187 for head 18224af0, served at CONTRACT_REVIEW_TIER. The verdict is PASS with no must-fix and no should-fix items. The record's Scope: line covers every reviewFace hit this PR's files produce: component.zod.ts, validation.zod.ts and the two semantic migration entries. The brief, 7021021265, came from --brief-template with its ⛔ lines kept. The nits stand as the record dispositions them: N1 rides #35630 (7021159667), N2 is a body-only fix, and N3 is noted. L1 ACCEPT is 7021073813. A clean origin/main merge before landing keeps this adoption: the area reports the new head, and any path the merge does not explain needs a delta L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

CI reading · 2026-11-19T21:03Z · head 1c2b804052a59a3aa0d5b798da42ac3d81d80212 · run 44608779371
Attempt 1 failed only Test Core (10/10) (and its Test Core roll-up). The one failure is packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts:703, the beforeAll of [#21552] the rest of the family…: "Hook timed out in 480000ms". The log shows no assertion ran and none failed (@objectstack/cli 219 of 220 files passed, 2640 tests passed). The shard was slow throughout: duration 1202.78s, with import taking 856.32s. The hook seeds a control database and spawns the CLI three times per door, serially.
Why I judge it a flake: the timeout measured nothing about this diff. The PR touches @objectstack/lint (two rules), one @objectstack/spec export and plugin-detail, and nothing on the os migrate data-command path. The same shard passed on the previous head 18224af0. The merge brought in only main's own 20 commits, and the PR's diff is unchanged (same git patch-id). So I am re-running the failed jobs once, through the relay (rerun-failed.mjs). A second failure will be treated as real.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Landing · 2026-11-19T21:28Z · head 1c2b804052a59a3aa0d5b798da42ac3d81d80212 · ACCEPT → PR #35629 comment 7021073813 (L1-a) · L2 PASS → comment 7021133187 (CONTRACT_REVIEW_TIER, seat adoption 7021183151)

probe reading
check-governed-merges.mjs --pr 35629 NOT governed · 238 changed lines ≤ 3000
head move since review 18224af0 → 1c2b8040 is one clean merge of origin/main 5c5b54d3 only; the PR's own diff is unchanged (git patch-id --stable 43a14c36 on both); the ACCEPT and the L2 adoption stand on it
K = git rev-list --count --first-parent 5c5b54d3..origin/main 3 (< 15)
CI on head all green; Test Core (10/10) attempt 1 hit a CLI hook timeout judged a flake (7022173942), attempt 2 green
dogfood battery (Clause-②: yes (narrowing)) ran on 18224af0, one merge of the base below the head (os-dev-report 7019779056)

State change: pr_ready + automerge_enable (merge queue). On MERGED, #35251 closes by Fixes and leaves pm:dispatched; #35252 (declared Part of, so the dogfood gate reads one card thread, #35251's) is shut by hand with a Delivered note.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data protocol:ui size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lint: state-machine-no-initial-states should not judge update-only machines, where initialStates is inert

2 participants